package edu.sctu.practice.class01.zhengsenwen.JavaLesson.bstractcla;

/**
 * Created by zhengsenwen on 2015/11/5.
 */
public class Client {

    //抽象类不能被实例化
    //只是定义了方法  并未实现
    //抽象类用abstract定义
    //应用在行为相似的类中
    public static void main(String[] args) {

        JavaLesson javaLesson = new JavaLesson();
        javaLesson.learn();
        System.out.println();

        HtmlLesson htmlLesson = new HtmlLesson();
        htmlLesson.learn();
    }


                            public int calculate(int a, int b) {
                                return a / (a + b);
                            }

    //What happens if a + b = 0 ?
//    ArithmeticException



}


